<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>第二个就js特效</title>
	<style>
	#div1{
		height: 200px;
		width: 200px;
		background: red;
	}


	</style>
	<script>
	window.onload= function(){
	
		var oDiv=document.getElementById('div1');
		oDiv.onmouseover = function(){
		    oDiv.style.width='400px';
		    oDiv.style.height='400px';
		    oDiv.style.background='green';
		}
		
		oDiv.onmouseout = function(){
			oDiv.style.width='200px';
			oDiv.style.height='200px';
			oDiv.style.background='red';
		}
		 setInterval(getTime,2000)
	
	}
	
	</script>
</head>
<body>
	<div id="div1">
	</div>
	
</body>
</html>